Information synchronization method, terminal and information synchronization system

ABSTRACT

An information synchronization method, a terminal and a system, which relates to the technical field of communication. The method includes: by the first terminal, sending a controlling request of a target terminal to the controlling server; by the first terminal, receiving a state feedback information sent by the first terminal, according to the state feedback information, updating an information of the first terminal; and by the first terminal, sending the state feedback information to each of the at least one second terminal, so that the second terminal updates an information of the second terminal according to the state feedback information.

CROSS REFERENCE TO RELEVANT APPLICATIONS

The present disclosure claims the priority of the Chinese patentapplication filed on Mar. 30, 2020 filed to the Chinese Patent Officewith the application number of 202010239147.1 and the title of“INFORMATION SYNCHRONIZATION METHOD, TERMINAL, AND INFORMATIONSYNCHRONIZATION SYSTEM”, the entire contents of which are incorporatedherein in its entirety by reference.

TECHNICAL FIELD

The present disclosure relates to the technical field of communication,and particularly relates to an information synchronization method, aterminal and an information synchronization system.

BACKGROUND

With the development of smart home, various types of smart home hardwarehave already extensively come into common homes today. In projects ofdistributed smart-home control panels, it is required to installterminals such as control panels at multiple positions in a house, andtherefore it is required to send instructions or requests to a homecontrolling server by the multiple terminals. Moreover, it is requiredeach of the terminals to have a licence that permits to send informationto the home controlling server.

Furthermore, it is further required to construct a middleground deviceto perform the state synchronization between the multiple terminals, andthe main function of the middleground device is to distribute messagescollectively. Referring to FIG. 1, if the terminal 1 sends a request tothe server, for example, a request of lightening a lamp, then the servercan merely feed back the state information to the terminal 1, forexample, lightening a lamp icon of the terminal 1. However, because thestate of the terminal 1 is also required to be synchronized to theterminal 2 and the terminal 3, or, in other words, it is also requiredthe terminal 2 and the terminal 3 to lighten the lamp icon on their ownpages that corresponds to the terminal 1, it is necessary to require themiddleground device to distribute the feedback informationsimultaneously to the 3 terminals simultaneously.

SUMMARY

The present disclosure provides an information synchronization method, aterminal and an information synchronization system.

The present disclosure provides an information synchronization method,wherein the method is applied to a first terminal of an informationsynchronization system, the information synchronization system furthercomprises a controlling server and at least one second terminal, thefirst terminal and the at least one second terminal are located in asame local area network, and the method comprises:

sending a controlling request of a target terminal to the controllingserver, wherein the target terminal refers to the first terminal or anyone of the at least one second terminal;

receiving a state feedback information sent by the controlling server,and according to the state feedback information, updating an informationof the first terminal; and

sending the state feedback information to each of the at least onesecond terminal, so that each of the at least one second terminalupdates an information of the each of the at least one second terminalaccording to the state feedback information.

Optionally, the target terminal refers to the first terminal, and beforethe step of sending the controlling request of the target terminal tothe controlling server, the method further comprises:

generating a controlling request of the first terminal.

Optionally, the target terminal refers to a target second terminal amongthe at least one second terminal, and before the step of sending thecontrolling request of the target terminal to the controlling server,the method further comprises:

receiving a controlling request generated by the target second terminal.

Optionally, the step of sending the controlling request of the targetterminal to the controlling server comprises:

determining a sending terminal of the controlling request generated bythe target second terminal;

on the condition that the sending terminal comprises the target secondterminal, sending the controlling request of the target second terminalsent by the target second terminal to the controlling server; and

on the condition that the sending terminal does not comprise the targetsecond terminal, sending the controlling request of the target secondterminal that is sent by a second terminal other than the target secondterminal to the controlling server.

Optionally, the first terminal has a licence to send an information tothe controlling server.

Optionally, the first terminal and the second terminal communicate byusing a User Datagram Protocol.

Optionally, the first terminal and the second terminal communicate byusing the User Datagram Protocol by establishing a socket connection.

The present disclosure further discloses an information synchronizationmethod, wherein the method is applied to at least one second terminal ofan information synchronization system, the information synchronizationsystem further comprises a controlling server and a first terminal, thefirst terminal and the at least one second terminal are located in asame local area network, and the method comprises:

receiving a state feedback information sent by the first terminal,wherein the state feedback information is generated and sent by thecontrolling server to the first terminal when the controlling server hasreceived a controlling request of a target terminal sent by the firstterminal, wherein the target terminal refers to the first terminal orany one of the at least one second terminal; and

according to the state feedback information, updating an information ofthe second terminal.

Optionally, the target terminal refers to the second terminal, andbefore the step of receiving the state feedback information sent by thefirst terminal, the method further comprises:

generating a controlling request of the second terminal; and

sending the controlling request of the second terminal to the firstterminal.

Optionally, after the step of generating the controlling request of thesecond terminal, the method further comprises:

forwarding the controlling request of the second terminal to each of theother second terminals in the information synchronization system.

Optionally, the target terminal refers to the second terminal, andbefore the receiving the state feedback information sent by the firstterminal, the method further comprises:

receiving a controlling request that is generated and sent by any one ofthe other second terminals in the information synchronization system;and

forwarding the controlling request that is generated by the any one ofthe other second terminals in the information synchronization system tothe first terminal.

The present disclosure further discloses a terminal, wherein theterminal comprises a processor, a memory and a computer program that isstored in the memory and is executable in the processor, and thecomputer program, when executed by the processor, implements the stepsof the information synchronization method implemented by the firstterminal stated above.

The present disclosure further discloses a computer-readable storagemedium, wherein the computer-readable storage medium stores a computerprogram, and the computer program, when executed by a processor,implements the steps of the information synchronization methodimplemented by the first terminal stated above.

The present disclosure further discloses a terminal, wherein theterminal comprises a processor, a memory and a computer program that isstored in the memory and is executable in the processor, and thecomputer program, when executed by the processor, implements the stepsof the information synchronization method implemented by the secondterminal stated above.

The present disclosure further discloses a computer-readable storagemedium, wherein the computer-readable storage medium stores a computerprogram, and the computer program, when executed by a processor,implements the steps of the information synchronization methodimplemented by the second terminal stated above.

The present disclosure further discloses an information synchronizationsystem, wherein the information synchronization system comprises acontrolling server, a first terminal and at least one second terminal,and the first terminal and the at least one second terminal are locatedin a same local area network;

the first terminal is configured for sending a controlling request of atarget terminal to the controlling server; and according to a statefeedback information sent by the controlling server, updating aninformation of the first terminal, and sending the state feedbackinformation to each of the at least one second terminal, wherein thetarget terminal refers to the first terminal or any one of the at leastone second terminal;

the controlling server is configured for, according to the controllingrequest, generating the state feedback information, and sending thestate feedback information to the first terminal; and

the second terminal is configured for, according to the state feedbackinformation, updating an information of the second terminal.

Optionally, the target terminal refers to a target second terminal amongthe at least one second terminal, and the first terminal is furtherconfigured for:

receiving a controlling request generated by the target second terminal.

Optionally, the first terminal is further configured for:

determining a sending terminal of the controlling request generated bythe target second terminal;

on the condition that the sending terminal comprises the target secondterminal, sending the controlling request of the target second terminalsent by the target second terminal to the controlling server; and

on the condition that the sending terminal does not comprise the targetsecond terminal, sending the controlling request of the target secondterminal that is sent by a second terminal other than the target secondterminal to the controlling server.

Optionally, the target terminal refers to the second terminal, and thesecond terminal is further configured for:

generating a controlling request of the second terminal; and

sending the controlling request of the second terminal to the firstterminal.

Optionally, the second terminal is further configured for:

forwarding the controlling request of the second terminal to each of theother second terminals in the information synchronization system.

Optionally, the target terminal refers to the second terminal, and thesecond terminal is further configured for:

receiving a controlling request that is generated and sent by any one ofthe other second terminals in the information synchronization system;and

forwarding the controlling request that is generated by the any one ofthe other second terminals in the information synchronization system tothe first terminal.

The present disclosure further provides a computer program, wherein thecomputer program comprises a computer-readable code, and when thecomputer-readable code is executed on a terminal, the computer-readablecode causes the terminal to implement the information synchronizationmethod implemented by the first terminal stated above.

The present disclosure further provides a computer program, wherein thecomputer program comprises a computer-readable code, and when thecomputer-readable code is executed on a terminal, the computer-readablecode causes the terminal to implement the information synchronizationmethod implemented by the second terminal stated above.

The above description is merely a summary of the technical solutions ofthe present disclosure. In order to more clearly know the elements ofthe present disclosure to enable the implementation according to thecontents of the description, and in order to make the above and otherpurposes, features and advantages of the present disclosure moreapparent and understandable, the particular embodiments of the presentdisclosure are provided below.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to more clearly illustrate the technical solutions of theembodiments of the present disclosure or the related art, the figuresthat are required to describe the embodiments or the related art will bebriefly introduced below. Apparently, the figures that are describedbelow are merely embodiments of the present disclosure, and a personskilled in the art can obtain other figures according to these figureswithout paying creative work.

FIG. 1 shows a structural block diagram of an informationsynchronization system in the related art;

FIG. 2 shows a flow chart of the steps of the informationsynchronization method according to an embodiment of the presentdisclosure;

FIG. 3 shows a structural block diagram of the informationsynchronization system according to an embodiment of the presentdisclosure;

FIG. 4 shows a flow chart of the steps of the informationsynchronization method according to another embodiment of the presentdisclosure;

FIG. 5 shows a flow chart of the steps of the informationsynchronization method according to a third embodiment of the presentdisclosure;

FIG. 6 shows a flow chart of the steps of the informationsynchronization method according to a fourth embodiment of the presentdisclosure;

FIG. 7 shows a schematic diagram of a particular informationsynchronization system according to an embodiment of the presentdisclosure;

FIG. 8 schematically shows a block diagram of a terminal forimplementing the method according to the present disclosure; and

FIG. 9 schematically shows a storage unit for maintaining or carrying aprogram code for implementing the method according to the presentdisclosure.

DETAILED DESCRIPTION

In order to make the above purposes, features and advantages of thepresent disclosure more apparent and understandable, the presentdisclosure will be described in further detail below with reference tothe drawings and the particular embodiments. Apparently, the describedembodiments are merely certain embodiments of the present disclosure,rather than all of the embodiments. All of the other embodiments that aperson skilled in the art obtains on the basis of the embodiments of thepresent disclosure without paying creative work fall within theprotection scope of the present disclosure.

Referring to FIG. 2, a flow chart of the steps of the informationsynchronization method according to an embodiment of the presentdisclosure is shown. The method is applied to an informationsynchronization system. Referring to FIG. 3, a structural block diagramof the information synchronization system according to an embodiment ofthe present disclosure is shown. The information synchronization systemcomprises a controlling server 10, a first terminal 20 and at least onesecond terminal 30, and the first terminal 20 and the at least onesecond terminal 30 are located in the same local area network 01. Inother words, the first terminal 20 and the second terminal 30 may bedistributed terminals in the same local area network 01.

In practical applications, the information synchronization system mayparticularly be a smart home system, the controlling server 10 may be ahome controlling server, and both of the first terminal 20 and thesecond terminal 30 may be a home controlling terminal, for example, ahome control panel and so on. In particular applications, when the userhas performed a controlling operation to the smart home on any one ofthe first terminals 20 and the second terminals 30, for example, acontrolling operation on the first terminal 20 of tuning on a lamp A,then the lamp A can be controlled to be turned on, and correspondingly,the icon of the lamp A on the page of the first terminal 20 can belightened. At this point, it is further required to synchronize thestates of the lamp A on the other terminals in the smart home system,or, in other words, it is required to also lighten the icons of the lampA on the pages of the other terminals in the smart home system, torealize the information synchronization of the lamp A on all of theterminals. The information synchronization method according to theembodiments of the present disclosure will be described below withreference to such an application scene.

Particularly, the method may comprise the following steps:

Step 101: by the first terminal, sending a controlling request of atarget terminal to the controlling server, wherein the target terminalrefers to the first terminal or any one of the at least one secondterminal.

In the embodiment of the present disclosure, the target terminal may bethe first terminal or any one of the at least one second terminal in theinformation synchronization system, or, in other words, the targetterminal may be any one of the terminals in the informationsynchronization system. When the user has performed certain controllingoperations on the target terminal in the information synchronizationsystem, for example, an operation of turning on the lamp A, the firstterminal may obtain a controlling request of the target terminal, andsend the controlling request of the target terminal to a controllingserver in an external network.

In the embodiment of the present disclosure, no matter which terminal inthe information synchronization system the target terminal is, itscontrolling request is required to be sent to the controlling server viathe first terminal.

Step 102: by the controlling server, according to the controllingrequest, generating the state feedback information, and sending thestate feedback information to the first terminal.

In the embodiment of the present disclosure, the controlling server mayreceive the controlling request of the target terminal sent by the firstterminal, and the state feedback information is generated according tothe controlling request of the target terminal. For example, thecontrolling request of the target terminal may be a controlling requestof turning on the lamp A, and accordingly the controlling server maygenerate a state feedback information for indicating that the lamp A hasbeen turned on. Subsequently, the controlling server may return thestate feedback information to the first terminal.

Step 103: by the first terminal, receiving a state feedback informationsent by the first terminal, and according to the state feedbackinformation, updating an information of the first terminal.

In the embodiment of the present disclosure, the first terminal mayreceive the state feedback information sent by the controlling server.The information of the first terminal may particularly be the pageinformation of the first terminal, for example, the state of lighteningof an icon on the page of the first terminal, and so on, which is notparticularly limited in the embodiments of the present disclosure. Forexample, if the state feedback information is used for indicating thatthe lamp A has been turned on, then the first terminal may, according tothe state feedback information, lighten the icon of the lamp A on thepage of itself from darkness, to enable the user to view on the page ofthe first terminal that the icon of the lamp A has been lightened, it isthereby known that the lamp A has been turned on.

Step 104: by the first terminal, sending the state feedback informationto each of the at least one second terminal, so that the second terminalupdates an information of the second terminal according to the statefeedback information.

In the embodiment of the present disclosure, the first terminal, afterhas received the state feedback information sent by the controllingserver, may also send the state feedback information to each of the atleast one second terminal in the information synchronization system, sothat the second terminal updates an information of the second terminalaccording to the state feedback information. The information of thesecond terminal may particularly be the page information of the secondterminal, for example, the state of lightening of an icon on the page ofthe second terminal, and so on, which is not particularly limited in theembodiments of the present disclosure.

Step 105: by the second terminal, receiving a state feedback informationsent by the first terminal.

In the embodiment of the present disclosure, each of the at least onesecond terminal in the information synchronization system can receivethe state feedback information sent by the first terminal.

Step 106: by the second terminal, according to the state feedbackinformation, updating an information of the second terminal.

In the embodiment of the present disclosure, taking the case as anexample in which the state feedback information is used for indicatingthat the lamp A has been turned on, each of the at least one secondterminal, after has received the state feedback information, may,according to the state feedback information, lighten the icon of thelamp A on the page of itself from darkness, to enable the user to viewalso on the page of each of the at least one second terminal that theicon of the lamp A has been lightened, it is thereby known that the lampA has been turned on. Both of the first terminal and the second terminalhave lightened the icon of the lamp A, or, in other words, each of theterminals in the information synchronization system has realized theinformation synchronization of the state of the lamp A. Accordingly, theuser can view the current state of the lamp A on any one of theterminals in the information synchronization system.

Optionally, in the embodiment of the present disclosure, the firstterminal has a licence to send an information to the controlling server.In other words, the license to permit to send the information to thecontrolling server may be dispatched to merely the first terminal in theinformation synchronization system, whereby the first terminal in theinformation synchronization system can serve as a router, to forward thecontrolling request of the other second terminal in the informationsynchronization system to the controlling server, and to forward thestate feedback information returned by the controlling server to each ofthe at least one second terminal.

In addition, optionally, the first terminal and the second terminal maycommunicate by using the User Datagram Protocol (UDP). The UDP protocolhas the advantage of a high transmission efficiency, and thus is veryextensively applied in wireless networks.

The first terminal and the second terminal may perform the UDPcommunication by establishing a socket connection. Before broadcastingthe data packets, both of the sending party and the receiving party arerequired to create a Socket object, and specify DatagramPacket datapackets to store the data to be sent. Usually, when the UDPSocketservice is defined, a fixed port is monitored. In the process ofreceiving and sending the data, the sending party may invoke the sendmethod of the Socket object to send the data packets, the receivingparty may use the receive ( ) method to receive the sent data packets,and at the same time the receive ( ) has the function of obstructingmonitoring.

Generally, the sending party of the data may have the followingoperation steps:

a: starting up a Socket connection:

b: creating an object (such as multicastSocket), and adding the objectto a multicasting group;

c: creating a class (such as InetAddress);

d: converting the data packets required to be sent into the byte type;

e: creating an object (such as DatagramPacket), and specifying thedestination address and the port number of the network that the datapackets are to be sent to;

f: invoking the sending method of the object (such as multicastSocket)to send the data packets; and

g: disconnecting the Socket connection, and leaving the multicastinggroup.

The receiving party of the data may have the following operation steps:

A: starting up a Socket connection;

B: creating an object (such as multicastSocket), setting a monitoringport, and adding the UDP port number required to be monitored into themulticasting group;

C: creating a byte array used for data receiving, and obtaining the IDnumber of the user and the IP address of the sending party for receivingthe data;

D: creating an empty object (such as DatagramPackage);

E: receiving the data packets sent by the sending party by using areceiving method, and, simultaneously with the receiving, performingmonitoring obstructing;

F: parsing the received data packets, wherein the data packets comprisedata such as the ID of the receiving party, the ID of the sending party,the nickname of the user, the IP address of the user, and the time ofthe receiving of the data packets; and

G: disconnecting the Socket connection, and leaving the multicastinggroup.

It should be noted that the above-described steps of the Socketconnection operation between the sending party and the receiving partyare merely an illustrative description, and do not limit the presentdisclosure. In particular applications, the particular process ofperforming the UDP communication by establishing the Socket connectionmay refer to the related art, which is not described in detail in theembodiments of the present disclosure.

In the embodiment of the present disclosure, the controlling request ofany one of the terminals in the information synchronization system canbe sent to the controlling server via the first terminal in theinformation synchronization system. Therefore, it is merely required todispatch a license to the first terminal, and it is not required todispatch a license to the other terminals in the informationsynchronization system, which saves the cost on the license of theentire system. In addition, the controlling server, according to thestate feedback information returned upon the controlling request, cansynchronize via the first terminal to each of the terminals in theinformation synchronization system, whereby each of the terminals in theinformation synchronization system can update its own informationaccording to the state feedback information, thereby realizing theinformation synchronization of each of the terminals. Accordingly, it isnot required to construct a middleground device used for collectivelydistributing the state feedback information, which saves the cost on theconstruction and maintenance of the middleground device.

FIG. 4 shows a flow chart of the steps of the informationsynchronization method according to another embodiment of the presentdisclosure. Referring to FIG. 4, optionally, when the target terminal isthe first terminal, before the step 101, the method may also comprisethe following steps:

Step 107: by the first terminal, generating a controlling request of thefirst terminal.

In this step, the target terminal is the first terminal in theinformation synchronization system, or, in other words, the user hasperformed the controlling operation on the first terminal, andaccordingly the first terminal may generate a controlling request.Subsequently, the first terminal may send its own controlling request tothe controlling server.

FIG. 5 shows a flow chart of the steps of the informationsynchronization method according to a third embodiment of the presentdisclosure. Referring to FIG. 5, optionally, when the target terminal isthe target second terminal among the at least one second terminal,before the step 101, the method may also comprise the following steps:

Step 108: by the first terminal, receiving a controlling requestgenerated by the target second terminal.

In this step, the target terminal is the target second terminal in theinformation synchronization system, and the target second terminal isany one of the second terminals; in other words, the user has performedthe controlling operation on the target second terminal. Accordingly,the target second terminal may generate a controlling request, and sendto the first terminal. Subsequently, the first terminal may send thecontrolling request generated by the target second terminal to thecontrolling server.

Correspondingly, from the perspective of the second terminal, when thetarget terminal is the second terminal the method may also comprise thefollowing steps: a controlling request of the second terminal isgenerated by the second terminal: and the second terminal sends thecontrolling request of the second terminal to the first terminal. Takingthe case as an example in which the target terminal is particularly thetarget second terminal, the above step is:

Step 109: by the target second terminal, generating the controllingrequest of the target second terminal.

Step 110: by the target second terminal, sending the controlling requestof the target second terminal to the first terminal.

In other words, the first terminal may receive the controlling requestthat is sent directly by the target second terminal and is generated bythe target second terminal itself.

FIG. 6 shows a flow chart of the steps of the informationsynchronization method according to a fourth embodiment of the presentdisclosure. Referring to FIG. 6, optionally, when the target terminal isthe second terminal, the method may also comprise the following steps:by the second terminal, forwarding the controlling request of the secondterminal to each of the other second terminals in the informationsynchronization system.

Taking the case as an example in which the target terminal isparticularly the target second terminal, the above step is:

Step 111: by the target second terminal, forwarding the controllingrequest of the target second terminal to each of the other secondterminals in the information synchronization system.

In the embodiment of the present disclosure, the first terminal and thetarget second terminal may communicate by using the UDP protocol.However, although the UDP protocol has a high speed of the datatransmission the data transmission has a low reliability; in otherwords, there is possibility of losing of the data packets. Therefore, inorder to improve the reliability of the data transmission between theterminals, a mechanism of cross-checking between the terminals is added.In other words, besides the first terminal directly connected to thecontrolling server, each of the at least one second terminal in theinformation synchronization system, after have generated its owncontrolling request, may send the controlling request to the firstterminal directly by itself, and may further simultaneously forward itsown controlling request to each of the other second terminals in theinformation synchronization system, whereby the each of the other secondterminals forwards the controlling request to the first terminal, toprevent the problem of packet losing in the process of the sending ofthe controlling request by the second terminal generating thecontrolling request.

In other words, when the target terminal is the second terminal, andbefore the receiving the state feedback information sent by the firstterminal, the method may also comprise the following steps: the secondterminal receives a controlling request that is generated and sent byany one of the other second terminals in the information synchronizationsystem; and the second terminal forwards the controlling request that isgenerated by the any one of the other second terminals in theinformation synchronization system to the first terminal.

Taking the case as an example in which the target terminal isparticularly the target second terminal, in other words, after theforwarding of a controlling information generated by itself to each ofthe other second terminals from the target second terminal in theinformation synchronization system, the each of the other secondterminals in the information synchronization system may receive thecontrolling request generated and sent by the target second terminal,and the each of the other second terminals may further forward thecontrolling request of the target second terminal to the first terminal.

Correspondingly, the step 101 may particularly comprise: by the firstterminal, determining a sending terminal of the controlling requestgenerated by the target second terminal; on the condition that thesending terminal comprises the target second terminal, by the firstterminal, sending to the controlling server the controlling request ofthe target second terminal sent by the target second terminal; and onthe condition that the sending terminal does not comprise the targetsecond terminal, by the first terminal, sending the controlling requestof the target second terminal that is forwarded by a second terminalother than the target second terminal to the controlling server.

The first terminal may parse the packet heads of the data packets ofeach of the received controlling requests, thereby determining whichsecond terminal the sending party of each of the controlling requestsis. If none of the data of the at least one second terminal has a lostpacket, the first terminal may receive the controlling request that isgenerated by itself and is sent by the target second terminal, and mayfurther receive the controlling request of the target second terminalthat is forwarded by the each of the other second terminals. In thiscase, the first terminal automatically ignores the controlling requestforwarded by the each of the other second terminals, and sends thecontrolling request sent by the target second terminal to thecontrolling server.

In addition, if the target second terminal has a lost packet, and thefirst terminal cannot receive the controlling request that is generatedby itself and from the target second terminal, the first terminal sendsthe controlling request forwarded by any one of the remaining secondterminals to the controlling server.

In other words, among the controlling requests received by the firstterminal, if there is a controlling request whose sending party is thegenerating party of the controlling request, the first terminal sendsthe controlling request whose sending party is its generating party tothe controlling server, and ignores the other controlling requests. Ifthere is no controlling request whose sending party is the generatingparty of the controlling request, the first terminal sends any one ofthe forwarded controlling requests to the controlling server.

Referring to FIG. 7, a schematic diagram of a particular informationsynchronization system according to an embodiment of the presentdisclosure is shown. The information synchronization method according tothe embodiments of the present disclosure will be described particularlybelow with reference to FIG. 7. In FIG. 7, the first terminal mayparticularly be a terminal 2, the terminal 2 has a licence to send aninformation to the controlling server, and the second terminal mayinclude a terminal 1, a terminal 3 and a terminal 4.

If the terminal 2 generates a terminal-2 controlling request, then theterminal 2 may send the terminal-2 controlling request to thecontrolling server directly, and then the controlling server may,according to the terminal-2 controlling request, generate the statefeedback information, and send the state feedback information to theterminal 2. When the terminal 2 receives the state feedback information,the terminal 2 may update the page information of the terminal 2according to the state feedback information, and simultaneously theterminal 2 may further send the state feedback information individuallyto the terminal 1, the terminal 3 and the terminal 4. When the terminal1 receives the state feedback information, the terminal 1 may update thepage information of the terminal 1 according to the state feedbackinformation. When the terminal 3 received the state feedbackinformation, the terminal 3 may update the page information of theterminal 3 according to the state feedback information. When theterminal 4 receives the state feedback information, the terminal 4 mayupdate the page information of the terminal 4 according to the statefeedback information.

Referring to FIG. 7, if the terminal 4 generates a terminal-4controlling request, the terminal 4 may send the terminal-4 controllingrequest to the terminal 2. In order to ensure the reliability of thetransmission, the terminal 4 may simultaneously send the terminal-4controlling request to the terminal 1 and the terminal 3. In turn, theterminal 1 may forward the terminal-4 controlling request to theterminal 2, and the terminal 3 may also forward the terminal-4controlling request to the terminal 2. When the terminal 2 has receivedthe terminal-4 controlling request sent by the terminal 4, itautomatically ignores the terminal-4 controlling requests forwarded bythe terminal 1 and the terminal 3. If the terminal 2 does not receivethe terminal-4 controlling request sent by the terminal 4, then itexecutes the terminal-4 controlling request forwarded by the terminal 1or the terminal 3, thereby improving the reliability of the UDP packettransmission.

In the embodiment of the present disclosure, the first terminal may sendthe controlling request of a target terminal in the informationsynchronization system to the controlling server. Subsequently, thecontrolling server may, according to the controlling request, generatethe state feedback information, and return the state feedbackinformation to the first terminal. The first terminal may, according tothe state feedback information, update an information of the firstterminal, and send the state feedback information to each of the secondterminals, so that each of the second terminals update its owninformation according to the state feedback information, therebyrealizing the information synchronization of each of the terminals. Inthe embodiment of the present disclosure, the controlling request of anyone of the terminals in the information synchronization system can besent to the controlling server via the first terminal in the informationsynchronization system, so it is merely required to dispatch a licenseto the first terminal, which saves the cost on the license of the entiresystem. In addition, the controlling server, according to the statefeedback information returned upon the controlling request, cansynchronize via the first terminal to each of the terminals in theinformation synchronization system, accordingly, it is not required toconstruct a middleground device used for collectively distributing thestate feedback information, which saves the cost on the construction andmaintenance of the middleground device.

An embodiment of the present disclosure further provides an informationsynchronization system. Referring to FIG. 3, the informationsynchronization system comprises a controlling server 10, a firstterminal 20 and at least one second terminal 30, and the first terminal20 and the at least one second terminal 30 are located in the same localarea network 01;

the first terminal 20 is configured for sending a controlling request ofa target terminal to the controlling server; and according to a statefeedback information sent by the controlling server, updating aninformation of the first terminal, and sending the state feedbackinformation to each of the second terminals, wherein the target terminalrefers to the first terminal or any one of the second terminals;

the controlling server 10 is configured for, according to thecontrolling request, generating the state feedback information, andsending the state feedback information to the first terminal; and

the second terminal 30 is configured for, according to the statefeedback information, updating an information of the second terminal.

Optionally, the first terminal is further configured for:

generating a controlling request of the first terminal.

Optionally, the first terminal is further configured for:

receiving a controlling request generated by the target second terminal.

Optionally, the first terminal is particularly configured for:

determining a sending terminal of the controlling request generated bythe target second terminal;

on the condition that the sending terminal comprises the target secondterminal, sending the controlling request of the target second terminalsent by the target second terminal to the controlling server; and

on the condition that the sending terminal does not comprise the targetsecond terminal, sending the controlling request of the target secondterminal that is sent by a second terminal other than the target secondterminal to the controlling server.

Optionally, the first terminal has a licence to send an information tothe controlling server.

Optionally, the first terminal and the second terminal communicate byusing a User Datagram Protocol.

Optionally, the target terminal refers to the second terminal, and thesecond terminal is further configured for:

generating a controlling request of the second terminal; and

sending the controlling request of the second terminal to the firstterminal.

Optionally, the second terminal is further configured for:

forwarding the controlling request of the second terminal to each of theother second terminals in the information synchronization system.

Optionally, the target terminal refers to the second terminal, and thesecond terminal is further configured for:

receiving a controlling request that is generated and sent by any one ofthe other second terminals in the information synchronization system;and

forwarding the controlling request that is generated by the any one ofthe other second terminals in the information synchronization system tothe first terminal.

In the embodiment of the present disclosure, the first terminal may sendthe controlling request of a target terminal in the informationsynchronization system to the controlling server. Subsequently, thecontrolling server may, according to the controlling request, generatethe state feedback information, and return the state feedbackinformation to the first terminal. The first terminal may, according tothe state feedback information, update an information of the firstterminal, and send the state feedback information to each of the atleast one second terminal, so that each of the at least one secondterminal update its own information according to the state feedbackinformation, thereby realizing the information synchronization of eachof the terminals. In the embodiment of the present disclosure, thecontrolling request of any one of the terminals in the informationsynchronization system can be sent to the controlling server via thefirst terminal in the information synchronization system, so it ismerely required to dispatch a license to the first terminal, which savesthe cost on the license of the entire system. In addition, thecontrolling server, according to the state feedback information retunedupon the controlling request, can synchronize via the first terminal toeach of the terminals in the information synchronization system,accordingly, it is not required to construct a middleground device usedfor collectively distributing the state feedback information, whichsaves the cost on the construction and maintenance of the middlegrounddevice.

An embodiment of the present disclosure further discloses a terminal,wherein the terminal comprises a processor, a memory and a computerprogram that is stored in the memory and is executable in the processor,and the computer program, when executed by the processor, implements thesteps of the information synchronization method stated above.

An embodiment of the present disclosure further discloses acomputer-readable storage medium, wherein the computer-readable storagemedium stores a computer program, and the computer program, whenexecuted by a processor, implements the steps of the informationsynchronization method stated above.

Regarding the above-described process embodiments, for brevity of thedescription, all of them are expressed as the combination of a series ofactions, but a person skilled in the art should know that the presentdisclosure is not limited by the sequences of the actions that aredescribed, because, according to the present disclosure, some of thesteps may have other sequences or be performed simultaneously. Secondly,a person skilled in the art should also know that all of the embodimentsdescribed in the description are preferable embodiments, and not all ofthe actions and the modules that they involve are required by thepresent disclosure.

The above-described device embodiments are merely illustrative, whereinthe units that are described as separate components may or may not bephysically separate, and the components that are displayed as units mayor may not be physical units; in other words, they may be located at thesame one location, and may also be distributed to a plurality of networkunits. Some or all of the modules may be selected according to theactual demands to realize the purposes of the solutions of theembodiments. A person skilled in the art can understand and implementthe technical solutions without paying creative work.

Each component embodiment of the present disclosure may be implementedby hardware, or by software modules that are operated on one or moreprocessors, or by a combination thereof. A person skilled in the artshould understand that some or all of the functions of some or all ofthe components of the terminal according to the embodiments of thepresent disclosure may be implemented by using a microprocessor or adigital signal processor (DSP) in practice. The present disclosure mayalso be implemented as apparatus or device programs (for example,computer programs and computer program products) for implementing partof or the whole of the method described herein. Such programs forimplementing the present disclosure may be stored in a computer-readablemedium, or may be in the form of one or more signals. Such signals maybe downloaded from an Internet website, or provided on a carrier signal,or provided in any other forms.

For example, FIG. 8 shows a terminal that can implement the methodaccording to the present disclosure. The terminal traditionallycomprises a processor 1010 and a computer program product orcomputer-readable medium in the form of a memory 1020. The memory 1020may be electronic memories such as flash memory. EEPROM (ElectricallyErasable Programmable Read Only Memory), EPROM, hard disk or ROM. Thememory 1020 has the storage space 1030 of the program code 1031 forimplementing any steps of the above method. For example, the storagespace 1030 for program code may contain program codes 1031 forindividually implementing each of the steps of the above method. Thoseprogram codes may be read from one or more computer program products orbe written into the one or more computer program products. Thosecomputer program products include program code carriers such as a harddisk, a compact disk (CD), a memory card or a floppy disk. Such computerprogram products are usually portable or fixed storage units as shown inFIG. 9. The storage unit may have storage segments or storage spaceswith similar arrangement to the memory 1020 of the terminal in FIG. 8.The program codes may, for example, be compressed in a suitable form.Generally, the storage unit contains a computer-readable code 1031′,which can be read by a processor like 1010. When those codes areexecuted by the terminal, the codes cause the terminal to implement eachof the steps of the method described above.

The embodiments of the description are described in the mode ofprogression, each of the embodiments emphatically describes thedifferences from the other embodiments, and the same or similar parts ofthe embodiments may refer to each other.

Finally, it should also be noted that, in the present text, relationterms such as first and second are merely intended to distinguish oneentity or operation from another entity or operation, and that does notnecessarily require or imply that those entities or operations havetherebetween any such actual relation or order. Furthermore, the terms“include”, “comprise” or any variants thereof are intended to covernon-exclusive inclusions, so that processes, methods, articles ordevices that include a series of elements do not only include thoseelements, but also include other elements that are not explicitlylisted, or include the elements that are inherent to such processes,methods, articles or devices. Unless further limitation is set forth, anelement defined by the wording “comprising a . . . ” does not excludeadditional same element in the process, method, article or devicecomprising the element.

The information synchronization method, the terminal and the informationsynchronization system according to the present disclosure has beendescribed in detail above. The principle and the embodiments of thepresent disclosure are described herein with reference to the particularexamples, and the description of the above embodiments is merelyintended to facilitate to understand the method according to the presentdisclosure and its core concept. Moreover, for a person skilled in theart, according to the concept of the present disclosure, the particularembodiments and the range of application may be varied. In conclusion,the contents of the description should not be understood as limiting thepresent disclosure.

1. An information synchronization method, wherein the method is appliedto a first terminal of an information synchronization system, theinformation synchronization system further comprises a controllingserver and at least one second terminal, the first terminal and the atleast one second terminal are located in a same local area network, andthe method comprises: sending a controlling request of a target terminalto the controlling server, wherein the target terminal refers to thefirst terminal or any one of the at least one second terminal; receivinga state feedback information sent by the controlling server, andaccording to the state feedback information, updating an information ofthe first terminal; and sending the state feedback information to eachof the at least one second terminal, so that each of the at least onesecond terminal updates an information of the each of the at least onesecond terminal according to the state feedback information.
 2. Themethod according to claim 1, wherein the target terminal refers to thefirst terminal, and before the sending the controlling request of thetarget terminal to the controlling server, the method further comprises:generating a controlling request of the first terminal.
 3. The methodaccording to claim 1, wherein the target terminal refers to a targetsecond terminal among the at least one second terminal, and before thestep of sending the controlling request of the target terminal to thecontrolling server, the method further comprises: receiving acontrolling request generated by the target second terminal.
 4. Themethod according to claim 3, wherein the step of sending the controllingrequest of the target terminal to the controlling server comprises:determining a sending terminal of the controlling request generated bythe target second terminal; on the condition that the sending terminalcomprises the target second terminal, sending the controlling request ofthe target second terminal sent by the target second terminal to thecontrolling server; and on the condition that the sending terminal doesnot comprise the target second terminal, sending the controlling requestof the target second terminal that is sent by a second terminal otherthan the target second terminal to the controlling server.
 5. The methodaccording to claim 1, wherein the first terminal has a licence to sendan information to the controlling server.
 6. The method according toclaim 1, wherein the first terminal and the second terminal communicateby using a User Datagram Protocol.
 7. The method according to claim 6,wherein the first terminal and the second terminal communicate by usingthe User Datagram Protocol by establishing a socket connection.
 8. Aninformation synchronization method, wherein the method is applied to atleast one second terminal of an information synchronization system, theinformation synchronization system further comprises a controllingserver and a first terminal, the first terminal and the at least onesecond terminal are located in a same local area network, and the methodcomprises: receiving a state feedback information sent by the firstterminal, wherein the state feedback information is generated and sentby the controlling server to the first terminal when the controllingserver has received a controlling request of a target terminal sent bythe first terminal, wherein the target terminal refers to the firstterminal or any one of the at least one second terminal; and accordingto the state feedback information, updating an information of the secondterminal.
 9. The method according to claim 8, wherein the targetterminal refers to the second terminal, and before the step of receivingthe state feedback information sent by the first terminal, the methodfurther comprises: generating a controlling request of the secondterminal; and sending the controlling request of the second terminal tothe first terminal.
 10. The method according to claim 9, wherein afterthe step of generating the controlling request of the second terminal,the method further comprises: forwarding the controlling request of thesecond terminal to each of the other second terminals in the informationsynchronization system.
 11. The method according to claim 8, wherein thetarget terminal refers to the second terminal, and before the step ofreceiving the state feedback information sent by the first terminal, themethod further comprises: receiving a controlling request that isgenerated and sent by any one of the other second terminals in theinformation synchronization system; and forwarding the controllingrequest that is generated by the any one of the other second terminalsin the information synchronization system to the first terminal.
 12. Aterminal, wherein the terminal comprises a processor, a memory and acomputer program that is stored in the memory and is executable in theprocessor, and the computer program, when executed by the processor,implements the steps of the information synchronization method accordingto claim
 1. 13. A computer-readable storage medium, wherein thecomputer-readable storage medium stores a computer program, and thecomputer program, when executed by a processor, implements the steps ofthe information synchronization method according to claim
 1. 14. Aterminal, wherein the terminal comprises a processor, a memory and acomputer program that is stored in the memory and is executable in theprocessor, and the computer program, when executed by the processor,implements the steps of the information synchronization method accordingto claim
 8. 15. A computer-readable storage medium, wherein thecomputer-readable storage medium stores a computer program, and thecomputer program, when executed by a processor, implements the steps ofthe information synchronization method according to claim
 8. 16. Aninformation synchronization system, wherein the informationsynchronization system comprises a controlling server, a first terminaland at least one second terminal, and the first terminal and the atleast one second terminal are located in a same local area network; thefirst terminal is configured for sending a controlling request of atarget terminal to the controlling server; and according to a statefeedback information sent by the controlling server, updating aninformation of the first terminal, and sending the state feedbackinformation to each of the at least one second terminal, wherein thetarget terminal refers to the first terminal or any one of the at leastone second terminal; the controlling server is configured for, accordingto the controlling request, generating the state feedback information,and sending the state feedback information to the first terminal; andthe second terminal is configured for, according to the state feedbackinformation, updating an information of the second terminal.
 17. Thesystem according to claim 16, wherein the target terminal refers to atarget second terminal among the at least one second terminal, and thefirst terminal is further configured for: receiving a controllingrequest generated by the target second terminal.
 18. The systemaccording to claim 17, wherein the first terminal is further configuredfor: determining a sending terminal of the controlling request generatedby the target second terminal; on the condition that the sendingterminal comprises the target second terminal, sending the controllingrequest of the target second terminal sent by the target second terminalto the controlling server; and on the condition that the sendingterminal does not comprise the target second terminal, sending thecontrolling request of the target second terminal that is sent by asecond terminal other than the target second terminal to the controllingserver.
 19. (canceled)
 20. (canceled)
 21. (canceled)
 22. A computerprogram, wherein the computer program comprises a computer-readablecode, and when the computer-readable code is executed on a terminal, thecomputer-readable code causes the terminal to implement the informationsynchronization method according to claim
 1. 23. A computer program,wherein the computer program comprises a computer-readable code, andwhen the computer-readable code is executed on a terminal, thecomputer-readable code causes the terminal to implement the informationsynchronization method according to claim 8.